﻿using LY.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QJ.CMS.Areas.Admin.Controllers
{
    public class BaseController : Controller
    {
        //
        // GET: /Admin/Base/

        public S_User LoginUser { get; set; }
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);
            bool isExt = false;
            if (Session["LoginUseInfo"] != null)
            {
                S_User userInfo = (S_User)Session["LoginUseInfo"];
                LoginUser = userInfo;
                isExt = true;
            }
            if (!isExt)
            {
                filterContext.HttpContext.Response.Redirect("/Admin/Login/Index");
                return;
            }
        }

    }
}
